# 1.导入归一化模型
from sklearn.preprocessing import MinMaxScaler


# 准备要处理的特征数据
x_train = [[90,2,10,40],
           [60,4,15,45],
           [75,3,13,46]
           ]

# 创建归一化模型
model = MinMaxScaler()
# 4. 模型训练并转换是数据
new_x_train = model.fit_transform(x_train)
print(f"归一化后的是数据为:{new_x_train}")

